-- GENERATED SPELL FOR [Wrathfin Warrior] --


function spell0_17735(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_17735', 602, 1)
end

function spell1_17735(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17735', 8300, 1)
end

function spell2_17735(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17735', 576, 1)
end

function Sorts_17735(pUnit, Event)
local choix_sorts_17735 = math.random(0, 2)
if choix_sorts_17735 == 0 then
pUnit:RegisterEvent('spell0_17735', 1, 1)
end
if choix_sorts_17735 == 1 then
pUnit:RegisterEvent('spell1_17735', 1, 1)
end
if choix_sorts_17735 == 2 then
pUnit:RegisterEvent('spell2_17735', 1, 1)
end
end

function mob17735_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17735', math.random(1500, 3000), 1)
end

function mob17735_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17735_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17735_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17735, 1, 'mob17735_Action')
RegisterUnitEvent(17735, 2, 'mob17735_Leave')
RegisterUnitEvent(17735, 3, 'mob17735_Kill')
RegisterUnitEvent(17735, 4, 'mob17735_Die')
